package com.jerry.secondkill.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.jerry.secondkill.domain.User;

@Mapper
public interface UserDao {
	
	@Select("select * "
		  + "from t_user "
		  + "where id = #{id}")
	public User getById(@Param("id")long id);
	
	@Update("update t_user "
		  + "set password = #{password} "
		  + "where id = #{id}")
	public void update(User updateUser);
}
